export class MyError extends Error {
    code:string;
    constructor(opt:{code:any;message:string;}) {
      super(opt.message);
      this.code = opt.code;
    }
  }